<template>
	<view style="padding-top: 100rpx;">
		<view class="text-area" style="background-color: aqua; display: flex;">
			<text>输入值：</text><input type="text" v-model="title" style="color: red;" />
		</view>
		<view class="text-area" style="display: flex;">
			<text>回传值：</text><input type="text" :value="callBackValue" style="color: yellow;"/>
		</view>
		
		<comA :intent="title"></comA>
		<comB @callBackFun="callBack"></comB>
	</view>
</template>

<script>
	import comA from '../../../components/comA.vue';
	import comB from '../../../components/comB.vue';
	export default {
		components: {
					comA,
					 comB// Shorthand for `comA: comA` (since import name matches component name)
				},
		data() {
			return {
				title: 'fasd',
				callBackValue:''
			}
		},
		methods: {
			callBack(value){
				this.callBackValue = value;
			}
		}
	}
</script>

<style>

</style>
